package adapter;

public class DuckAdapter implements Turkey
{
	//clasa DuckAdapter defineste o rata care va avea comportamentul unui curcan
	private Duck duck;
	public DuckAdapter(Duck d)
	{
		this.duck=d;
	}
	public void gobble()
	{
		duck.quack();
	}
	public void fly()
	{
		duck.fly();
	}
}